mysql -uroot -proot

登录之后输入status查看

sudo vim /etc/mysql/my.cnf

[mysql]
default-character-set=utf8

[mysqld]
character-set-server=utf8

sudo service mysql restart


zxyle
47 声望0 粉丝